﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Decoration.Models.Models
{
    public class Base_UserInfo
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        [MaxLength(50)]
        public string UserName { get; set; } = null!;

        /// <summary>
        /// 性别
        /// </summary>
        [MaxLength(2)]
        public string? Sex { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        [MaxLength(11)]
        public string? Tel { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [MaxLength(100)]
        public string? Email { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>
        [MaxLength(50)]
        public string? IdCard { get; set; }

        public DateTime CreateTime { get; set; } = DateTime.Now;

        public int Status { get; set; } = 1;

        /// <summary>
        /// 部门
        /// </summary>
        public int DeptId { get; set; }

        public virtual ICollection<Base_LoginInfo> Base_LoginInfos { get; set; } = new List<Base_LoginInfo>();
    }
}
